package com.iwomy.secureplat.platform.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.iwomy.secureplat.common.excel.annotation.ExcelLine;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 传感器
 *
 * @author pig
 * @date 2023-12-22 19:16:00
 */
@Data
@TableName("basic_sensor")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "传感器")
public class BasicSensorExcelVO extends Model<BasicSensorExcelVO> {


	/**
	 * 导入时候回显行号
	 */
	@ExcelLine
	@ExcelIgnore
	private Long lineNum;

	/**
	* 传感器类型
	*/
    @Schema(description="传感器类型")
	@NotBlank(message = "传感器类型不能为空")
	@ExcelProperty("传感器类型")
    private String sensorTypeName;

	/**
	 * 气体类型
	 */
	@Schema(description="气体类型")
	@NotBlank(message = "气体类型不能为空")
	@ExcelProperty("气体类型")
	private String detectionTypeName;

	/**
	 * 中文简称
	 */
	@Schema(description="中文简称")
	@NotBlank(message = "中文简称不能为空")
	@ExcelProperty("中文简称")
    private String zhName;

	/**
	 * 类型ID
	 */
	@Schema(description="类型ID")
	@NotBlank(message = "类型ID不能为空")
	@ExcelProperty("类型ID")
	private String sensorTypeCode;

	/**
	 * 备注
	 */
	@Schema(description="备注")
	@ExcelProperty("备注")
	private String remarks;

	/**
	 * 状态
	 */
	@Schema(description="状态")
	@ExcelProperty("状态")
	private Integer state;
}